package com.xin.auto.lib.base;

public class Humans {
    private String year;
    private String month;
    private int humanNums;
    private int hId;

    public Humans(int hId, String month, int humanNums) {
        this(hId, CalendarUtils.getYear(), month, humanNums);
    }

    public Humans(int hId, String year, String month, int humanNums) {
        this.hId = hId;
        this.year = year;
        this.month = month;
        this.humanNums = humanNums;
    }

    public Humans(String year, String month, int humanNums) {
        this.hId = Integer.parseInt(year) + Integer.parseInt(month);
        this.year = year;
        this.month = month;
        this.humanNums = humanNums;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public int getHumanNums() {
        return humanNums;
    }

    public void setHumanNums(int humanNums) {
        this.humanNums = humanNums;
    }

    public int gethId() {
        return hId;
    }

    public void sethId(int hId) {
        this.hId = hId;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    @Override
    public String toString() {
        return "Humans{" +
                "year='" + year + '\'' +
                ", month='" + month + '\'' +
                ", humanNums=" + humanNums +
                ", hId=" + hId +
                '}';
    }
}
